# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-josepy
_pkgname=josepy
pkgver=1.13.0
pkgrel=0
pkgdesc="JOSE protocol implementation in Python"
url="https://github.com/jezdez/josepy"
arch="noarch"
license="Apache-2.0"
depends="py3-cryptography py3-openssl py3-setuptools py3-six"
makedepends="libffi-dev python3-dev"
source="$_pkgname-$pkgver.tar.gz::https://github.com/certbot/josepy/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces=py-josepy # Backwards compatibility
provides=py-josepy=$pkgver-r$pkgrel # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
d521467a9366f9a3d580c2c438274533d65d7eeb35869d7c7c600df5dcce9391e7f88f497d5fe74dbbc10490718745df52ece3bd41996a23d025ad0f96f4bab5  josepy-1.13.0.tar.gz
"
